package com.boss.hr.service.impl;

import com.boss.hr.entity.UserEntity;
import com.boss.hr.mapper.UserMapper;
import com.boss.hr.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/***
 * @Author lys(cherish)
 * @Description 用户服务
 * @Date  2019/3/2
 **/
@Service
public class UserServiceImpl implements IUserService {

//  引入用户DAO操作对象
    @Autowired
    private UserMapper userMapper;

    /***
     * @Author lys(cherish)
     * @Description  查询用户列表
     * @Date  2019/3/2
     * @Param []
     * @return java.util.List<com.boss.hr.entity.UserEntity>
     **/
    public List<UserEntity> getAll() {
        return userMapper.getAll();
    }

    /***
     * @Author lys(cherish)
     * @Description //TODO
     * @Date  2019/3/2
     * @Param [id]
     * @return com.boss.hr.entity.UserEntity
     **/
    public UserEntity getOne(Long id) {
        return null;
    }

    /***
     * @Author lys(cherish)
     * @Description 插入一条用户信息
     * @Date  2019/3/2
     * @Param [user]
     * @return void
     **/
    public void insert(UserEntity user) {

    }

    /***
     * @Author lys(cherish)
     * @Description 更新用户数据
     * @Date  2019/3/2
     * @Param [user]
     * @return void
     **/
    public void update(UserEntity user) {

    }

    /***
     * @Author lys(cherish)
     * @Description 根据用户ID删除用户信息
     * @Date  2019/3/2
     * @Param [id]
     * @return void
     **/
    public void delete(Long id) {

    }

}
